/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.util.Arrays;

/**
 * <p>Project: jse2303 - ArrSort4
 * <p>Powered by webrx On 2023-07-12 14:06:16
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class ArrSort4 {
    public static void main(String[] args) {
        String[] ns = new String[]{"张三", "李四", "王五", "张三丰", "赵六", "李勇"};
        System.out.println(Arrays.toString(ns));

        Arrays.sort(ns, (a, b) -> b.compareTo(a));
        System.out.println(Arrays.toString(ns));

        System.out.println((int) '张');
        System.out.println((int) '李');
        System.out.println((int) '赵');
        System.out.println((int) '王');
    }
}
